/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.genew.squadra.xml.model.content.manifest;

import java.util.List;

/**
 *
 * @author Matteo
 */
public class Manifest {
    
    private String id;
    private List<Item> items;

    public Manifest() {
    }

    public Manifest(String id, List<Item> items) {
        this.id = id;
        this.items = items;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the items
     */
    public List<Item> getItems() {
        return items;
    }

    /**
     * @param items the items to set
     */
    public void setItems(List<Item> items) {
        this.items = items;
    }

	public void printMF() {
		System.out.println(this.getId());
		for(int i=0;i<this.getItems().size();i++){
			System.out.println("--------------------------------------");
			System.out.println(this.getItems().get(i).getId());
			System.out.println(this.getItems().get(i).getHref());
			System.out.println(this.getItems().get(i).getMedia_type());
			System.out.println(this.getItems().get(i).getFallback());
			System.out.println(this.getItems().get(i).getProprierties());
			System.out.println(this.getItems().get(i).getMedia_overlay());
			System.out.println("--------------------------------------");
		}
        
		
	}

  
    
}
